package com.zmj.framework.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * @author lzy
 * @since 2023-11-28
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class SortItem implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 升序
     */
    public static final String ORDER_ASC = "asc";
    /**
     * 降序
     */
    public static final String ORDER_DESC = "desc";

    /**
     * 字段
     */
    private String field;
    /**
     * 顺序
     */
    private String order;
}